export default function createComponents(app) {
  app.component("newsweibo", {
    name: "newsweibo",
    props: ["data", "url"],
    template: `
      <div>
        <img style="float:left;height:100px" :src="url" alt="">
        <p>{{data}}</p>
      </div>
    `,
  });
  app.component("newsdongtai", {
    name: "newsdongtai",
    props: ["data", "url"],
    template: `
    <div>
        <img style="height:100px" :src="url" alt="">
        <p>{{data}}</p>
      </div>
    `,
  });
  app.component("newsxinwei", {
    name: "newsxinwei",
    props: ["data", "url"],
    template: `
    <div>
        <img style="float:right;height:100px" :src="url" alt="">
        <p>{{data}}</p>
      </div>
    `,
  });
}